#ifndef LOBBYWIDGET_H
#define LOBBYWIDGET_H

#include <QWidget>
#include <QListWidget>
#include <QPushButton>
#include <QLabel>
#include <QLineEdit>
#include <QLayout>
#include <QDebug>

#include "MassagesTypes.h"

class LobbyWidget : public QWidget
{
    Q_OBJECT

    std::vector<plInLobby> list;

public:

    QPushButton*    b_exitBtn;
    QPushButton*    b_startGameBtn;

    QLineEdit*      chatLine;
    QListWidget*    playerListWgt;



    explicit LobbyWidget(bool server, QWidget *parent = 0);

signals:
    void chatMsgOut(QString);
    void exitFromLobby();
    void startGame();


public slots:
    void changeList(std::vector<plInLobby>* list);
    void lineEditEntered();

};

#endif // LOBBYWIDGET_H
